package org.senseframework.support.open.api.validate;

/**
 * leo.yan on 2014/8/20.
 */
public class ValidateException extends RuntimeException {

    private Integer code;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public ValidateException() {
    }

//    public ValidateException(String message) {
//        super(message);
//    }


    public ValidateException(String message, Integer code) {
        super(message);
        this.code = code;
    }

    public ValidateException(String message, Integer code, Throwable cause) {
        super(message, cause);
        this.code = code;
    }
}
